import service from '@/utils/request'

// 获取用户绑定的菜单
// eslint-disable-next-line
export function fileUploadApi(data, onUploadProgress = (e) => console.log(e)) {
  return service({
    url: '/file/upload',
    method: 'post',
    data,
    onUploadProgress
  })
}
